package pack0714.com;

public class MyRunnable implements Runnable{
int n=0;
    @Override
    public void run() {
        synchronized ("hs"){
            System.out.println(Thread.currentThread().getName()+"come in");
            n++;
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(n);
        }
    }
}
